package com.xiaoh.dormitoryrepairreportbackend.model.dto.category;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 维修类别查询请求
 * 支持游标分页和页码显示的混合模式
 */
@Data
@Schema(description = "维修类别查询请求")
public class RepairCategoryQueryRequest implements Serializable {

    @Schema(description = "类别名称")
    private String categoryName;

    @Schema(description = "是否启用(0:禁用, 1:启用)")
    private Integer isActive;

    @Schema(description = "页面大小", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "当前页码，用于前端分页组件显示", example = "1")
    private Long current = 1L;

    @Schema(description = "游标ID，用于游标分页查询（性能优化）")
    private Long lastId;

    private static final long serialVersionUID = 1L;
}
